package org.riahispano.twitterds.domain;

import java.io.Serializable;

/**
 * @author: ecamacho
 * riahispano 2010
 */
public class LastMessage implements Serializable {

    /**
	 * 
	 */
	private static final long serialVersionUID = -2717880967171090603L;

	public LastMessage( )
	{

	}

	public LastMessage( String user, String password, long messageId )
	{
		this.setUser(user);
		this.setPassword(password);
		this.setMessageId(messageId);
	}

	private String user;

	private String password;

	private long messageId;

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public long getMessageId() {
        return messageId;
    }

    public void setMessageId(long messageId) {
        this.messageId = messageId;
    }

    @Override
    public String toString() {
        return "LastMessage{" +
                "user='" + user + '\'' +
                ", password='" + password + '\'' +
                ", messageId=" + messageId +
                '}';
    }
}
